LIBDIR = ../lib

#CC = gcc
CC = g++
CFLAGS = -g -Wall

.c.o:
	$(CC) $(CFLAGS) -c $<

.cc.o:
	$(CXX) $(CFLAGS) -c $<

OBJECTS = d_Mat4f.o d_Mat3f.o d_Matf.o d_MatFuncs.o d_Math.o d_Plane.o d_Vec2f.o d_Vec3f.o d_Vec4f.o d_Vecf.o

LIBNAME= libd_Math.a

all: $(LIBNAME)

$(LIBNAME): $(OBJECTS)
	ar ruv $(LIBNAME) $(OBJECTS)
	ranlib $(LIBNAME)

install: $(LIBNAME)
	mv $(LIBNAME) $(LIBDIR)

clean:
	rm -f *.o *~ $(LIBNAME)
